{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% block title %}会员购买 - {{ parent() }}{% endblock %}

{% set script_controller = 'vipbundle/controller/order/buy2' %}

{% set type = 'new' %}

{% block content %}

<div class="es-row-wrap container-gap" style="min-height:500px;">
  <div class="row">
    <div class="col-md-12">
      <div class="page-header"><h1>会员购买</h1></div>
    </div>
  </div>

  <form class="form-horizontal" id="member-buy-form" method="post" action="{{ path('vip_pay') }}">

    <div class="form-group">
      <label class="col-sm-3 control-label">会员等级</label>
      <div class="col-sm-8 radios">
        {{ radios('level', levels, selectedLevel) }}
      </div>
    </div>

    {% include "VipBundle:VipOrder:buy-form-common.html.twig" %}

    <div class="form-group">
      <div class="col-sm-offset-3 col-sm-8">
        <button type="submit" class="btn btn-primary">确认购买</button>
      </div>
    </div>

  </form>


<div class="modal" id="member-buy-confirm-modal">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">确认购买</h4>
      </div>
      <div class="modal-body">
        <form class="form-horizontal" id="member-buy-form">
          <div class="form-group">
            <label class="col-sm-3 control-label">购买会员</label>
            <div class="col-sm-8">
              <p class="form-control-static"><strong class="text-success confirm-level"></strong></p>
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">应付金额</label>
            <div class="col-sm-8">
              <p class="form-control-static"><strong class="money confirm-amount"></strong></p>
            </div>
          </div>

          {% include 'VipBundle:VipOrder:alipay-dualfun-tips.html.twig' %}

        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" id="member-order-confirm-btn">去支付</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->




</div>
{% endblock %}